<?php require_once('../../core/import.php');?>
<?php    
    #检测文件是否满足上传要求和上传是存在异常
    $Result=Upload::Probe($_FILES['File'],Config::UPLOAD_ATTACHMENT_SIZE_IMAGE,Config::UPLOAD_ATTACHMENT_EXT_IMAGE,Config::PATH_UPLOAD_ATTACHMENT_TEMP);
    if($Result['error']!=UPLOAD_ERR_OK)
    {
        //提示信息
        exit('上传发生错误，编号：'.$Result['error'].'，描述：'.$Result['message'].'。');
    }

    #检测完上传
    Upload::Execute($_FILES['File'],Config::PATH_UPLOAD_ATTACHMENT_TEMP);
    echo '上传成功';
?>